<template>
  <Mobile v-if="isMobile"/>
  <Home v-else></Home>
</template>

<script>
import Home from './components/Home'
import Mobile from './components/Mobile'

export default {
  name: 'App',
  components: {
    Home,
    Mobile
  },
  data() {
    return {
      isMobile: true
    }
  },
  mounted() {
    this.isMobile = /mobile/i.test(navigator.userAgent)
  }
}
</script>

<style>
html, body {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}

*::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  cursor: pointer;
  /*滚动条里面小方块*/
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

*::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 10px;
}
</style>
